package constants;

import java.util.Properties;

/**
 * 数据库连接信息定义
 */
public class DbConstants {

    public static final String driver = "com.mysql.jdbc.Driver";

    public static final String url = "jdbc:mysql://127.0.0.1:3306/ch3cooh?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC";

    public static final String username = "root";

    public static final String password = "123456";

    public static Properties properties = null;

    static{
        properties = new Properties();
        properties.setProperty("driverClassName", DbConstants.driver);
        properties.setProperty("jdbcUrl", DbConstants.url);
        properties.setProperty("username", DbConstants.username);
        properties.setProperty("password", DbConstants.password);
    }

}
